package com.diver.flinkdemo.dto.xxt;



import com.diver.flinkdemo.utils.CommonResource;
import com.diver.flinkdemo.utils.excel.ExcelAnnotation;

import java.io.Serializable;

public class StudentCartManageVo implements Serializable {

    // 序列化版本
    private static final long serialVersionUID = -7475485558377339904L;

    // 学生姓名
    @ExcelAnnotation(exportTitleName = "姓名")
    private String name;
    // 学校名称
    @ExcelAnnotation(exportTitleName = "学校")
    private String schoolName;

    // 年级
    @ExcelAnnotation(exportTitleName = "年级")
    private String gradeName;
    // 班级
    @ExcelAnnotation(exportTitleName = "班级")
    private String className;

    // 学生身份证号
    @ExcelAnnotation(exportTitleName = "IMEI")
    private String imei;

    //上学类型：out为走读，in为住校
    @ExcelAnnotation(exportTitleName = "类型")
    private String studentType;

    //是否设置了上学守护  0没有设置  1设置
    @ExcelAnnotation(exportTitleName = "是否设置上学守护")
    private String isGuardTime;

    //是否开启发送短信  0默认发送
    @ExcelAnnotation(exportTitleName = "短信")
    private String isSend;

    //状态  0没有绑定 1绑定了
    @ExcelAnnotation(exportTitleName = "状态")
    private String isBindings;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getStudentType() {
        return studentType;
    }

    public void setStudentType(String studentType) {
        if(CommonResource.STU_TYPE_OUT.equals(studentType)){
            this.studentType = "走读";
        }else{
            this.studentType = "住校";
        }

    }

    public String getIsGuardTime() {
        return isGuardTime;
    }

    public void setIsGuardTime(Integer isGuardTime) {
        if(null != isGuardTime && isGuardTime == 0){
            this.isGuardTime = "否";
        }

        if(null != isGuardTime && isGuardTime == 1){
            this.isGuardTime = "是";
        }
    }

    public String getIsSend() {
        return isSend;
    }

    public void setIsSend(Integer isSend) {
        if(null != isSend && isSend == 0){
            this.isSend = "已开启";
        }
        if(null != isSend && isSend == 1){
            this.isSend = "未开启";
        }
    }

    public String getIsBindings() {
        return isBindings;
    }

    public void setIsBindings(Integer isBindings) {
        if(null != isBindings && isBindings == 0){
            this.isBindings = "未绑定";
        }
        if(null != isBindings && isBindings == 1){
            this.isBindings = "已绑定";
        }
    }
}
